/* 搜索结果高亮样式 */
.search-result {
  .article-item {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    
    &:hover {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      transform: translateY(-2px);
    }
    
    .article-title {
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 8px;
      
      a {
        color: #333;
        text-decoration: none;
        
        &:hover {
          color: #1890ff;
        }
      }
    }
    
    .article-meta {
      font-size: 12px;
      color: #999;
      margin-bottom: 10px;
      
      span {
        margin-right: 15px;
      }
    }
    
    .article-summary {
      color: #666;
      font-size: 14px;
      line-height: 1.6;
      margin-bottom: 10px;
      
      p {
        margin: 0;
      }
    }
    
    .match-context {
      background-color: #f8f8f8;
      padding: 12px 15px;
      border-left: 3px solid #1890ff;
      border-radius: 3px;
      font-size: 14px;
      margin: 10px 0;
      color: #555;
      line-height: 1.6;
    }
  }
}

/* 高亮标记样式 */
em.highlight {
  background-color: #fffb8f;
  padding: 0 2px;
  font-style: normal;
  font-weight: bold;
  border-radius: 2px;
  color: #e65100;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .search-result .article-item {
    background-color: #1f1f1f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    
    .article-title a {
      color: #e0e0e0;
      
      &:hover {
        color: #40a9ff;
      }
    }
    
    .article-meta {
      color: #888;
    }
    
    .article-summary {
      color: #bbb;
    }
    
    .match-context {
      background-color: #2a2a2a;
      border-left: 3px solid #177ddc;
    }
  }
  
  em.highlight {
    background-color: #593d00;
    color: #ffc069;
  }
} 